package java19_1_8.abstract_test;

import java.util.Scanner;

/**
 * 星巴克咖啡制作
 * @author yuisama
 * @date 2022/01/08 09:42
 **/
// 咖啡机
public class Coffee extends CaffeineBeverage{
    Scanner scanner = new Scanner(System.in);
    @Override
    public void brew() {
        System.out.println("brew coffee bag");
    }
    @Override
    public void addCondiments() {
        System.out.println("add sugar and milk");
    }

    @Override
    public boolean isCustomerWantsCondiments() {
        System.out.println("您想加糖和牛奶吗?y表示加，n表示不加");
        String str = scanner.nextLine();
        if (str.equals("y")) {
            return true;
        }
        return false;
    }
}